﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emoney.UserTraining.Model;
using NHibernate.Linq;
using NHibernate;

namespace Emoney.UserTraining.DAL
{
    public class TemporaryContext:DataContext
    {
        public TemporaryContext() : base("Temporary.cfg.xml") { }
        public IQueryable<Traning_NetworkMeeting> Traning_NetworkMeeting
        {
            get
            {
                return Session.Query<Traning_NetworkMeeting>();
            }
        }

        public IQueryable<Traning_Lecturer> Traning_Lecturer
        {
            get
            {
                return Session.Query<Traning_Lecturer>();
            }
        }

        public IQueryable<Traning_MeetingType> Traning_MeetingType
        {
            get
            {
                return Session.Query<Traning_MeetingType>();
            }
        }

        public IQueryable<Training_MeetingUser> Training_MeetingUser
        {
            get {
                return Session.Query<Training_MeetingUser>();
            }
        }

        public IQueryable<NetworkMeeting> NetworkMeeting
        {
            get {
                return Session.Query<NetworkMeeting>();
            }
        }
    }
}
